package com.hxzy.common.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Desc 描述
 * @Author: admin
 * @Date: 2023/08/24/9:16
 */
@Getter
@Setter
@ApiModel(value = "分页模型")
public class PageReq {

    @ApiModelProperty(value = "当前第几页",required = true)
    @NotNull(message = "当前页码不能为空")
    private Integer page;

    @ApiModelProperty(value = "每页显示几笔",required = true)
    @NotNull(message = "每页笔数不能为空")
    private Integer size;
}
